package com.blrs.mapper;

import com.blrs.VO.EnterpriseHonorVO;
import com.blrs.domain.HonorManagement;
import com.blrs.domain.vo.BigViewDataVO;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * 荣誉资质信息Mapper接口
 * 
 * @author ruoyi
 * @date 2023-07-18
 */
public interface HonorManagementMapper 
 {
    /**
     * 查询荣誉资质信息
     * 
     * @param id 荣誉资质信息主键
     * @return 荣誉资质信息
     */
    public HonorManagement selectHonorManagementById(String id);

    /**
     * 查询荣誉资质信息列表
     * 
     * @param honorManagement 荣誉资质信息
     * @return 荣誉资质信息集合
     */
    public List<HonorManagement> selectHonorManagementList(HonorManagement honorManagement);
    public List<HonorManagement> selectHonorManagementListByOrgId(HonorManagement honorManagement);

    /**
     * 新增荣誉资质信息
     * 
     * @param honorManagement 荣誉资质信息
     * @return 结果
     */
    public int insertHonorManagement(HonorManagement honorManagement);

    /**
     * 修改荣誉资质信息
     * 
     * @param honorManagement 荣誉资质信息
     * @return 结果
     */
    public int updateHonorManagement(HonorManagement honorManagement);

    /**
     * 删除荣誉资质信息
     * 
     * @param id 荣誉资质信息主键
     * @return 结果
     */
    public int deleteHonorManagementById(String id);

    /**
     * 批量删除荣誉资质信息
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteHonorManagementByIds(String[] ids);

    int updateHonorManagementByReceive(HonorManagement honorManagement);


     List<HonorManagement> selectEnterpriseInfoByBelongTo(EnterpriseHonorVO enterpriseHonorVO);


    List<HonorManagement> selectHonorManagementListByCollaborative(EnterpriseHonorVO enterpriseHonorVO);

    List<HonorManagement> selectHonorManagementByEnter(EnterpriseHonorVO enterpriseHonorVO);

    List<HonorManagement> selectHonorManagementListByOrgIdShangJi(EnterpriseHonorVO enterpriseHonorVO);

     void deleteHonorManagementByEnterId(String enterpriseId);

    List<HonorManagement> selectHuanTongList(EnterpriseHonorVO enterpriseHonorVO);

    void batchInsertHonorManagement(ArrayList<HonorManagement> managementArrayList);

     int updateHonorManagementStatus(@Param("id") String id, @Param("isPublic") String isPublic);

     List<HonorManagement> selectHonorManagementListPublic(Long orgId);

     String checkSync(@Param("projectId") String projectId,@Param("orgId") Long orgId);


     BigViewDataVO selectHonorManagementByCategory(String name);

     Long selectHonorManagementByThisYearAndCategory( String name);

     Long selectHonorManagementByThisYearAndCategorySecond(String name);
 }
